#include<stdio.h>
int min(int a, int b)
{
	if (a > b)
		return b;
	else
		return a;
}
int main()
{
	int dp[100];
	int i ,cost;
	dp[0] = 0;
	for (i = 1; i <= 15; i++)
	{
		cost = 99999;
		if (i - 1 >= 0)
			cost = min(cost, dp[i - 1] + 1);
		if(i-5>=0)
			cost= min(cost, dp[i - 5] + 1);
		if (i - 11 >= 0)
			cost = min(cost, dp[i - 11] + 1);
		dp[i] = cost;
	  printf("dp[%d]=%d\n", i, dp[i]);
	}
	return 0;
}